<template>
  <div>
    <div class="box">
      <div class="title">商品热榜
        <span>{{ $store.getters.start.substring(0,10) }} ~ {{ $store.getters.end.substring(0,10) }}</span>
      </div>
      <el-row v-for="(item,index) in $store.getters.hotlist" :key="index">
        <el-col :span="5"><div>{{ index+1 }}</div></el-col>
        <el-col :span="13"><div>{{ item.skuName }}</div></el-col>
        <el-col :span="6"><div>{{ item.count }}单</div></el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
export default {
  name: '',
  components: {},
  props: {},
  data() {
    return {}
  },
  computed: {},
  watch: {},
  created() {},
  methods: {}
}
</script>

<style scoped lang="less">
.box {
    margin-top: 20px;
    margin-right: 10px;
    height: 538px;
    padding: 20px;
    background-color: #fff;
    border-radius: 20px;
  }
</style>
